package com.example.demo.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.entity.LineTrend;
import com.example.demo.entity.NocvData;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface IndexMapper extends BaseMapper<NocvData> {
    /*接口，只定义，写业务逻辑
    1、实现类：写自己业务逻辑
    2、XML mybatisplus 一种实现
    3、 @select
    * */
    @Select("select * from line_trend order by create_time limit 7")//默认升序
    List<LineTrend> findSevenData();
}
